
from django.urls import include, path
from rest_framework.routers import DefaultRouter

from . import views

router = DefaultRouter()  # 只需要实现一次
router.register("funcprice", viewset=views.FuncPriceView, basename="funcprice")
router.register("miniconfig", viewset=views.MiniAppConfigView, basename="miniconfig")


urlpatterns = [
     path('',include(router.urls)),
     path("backup", view=views.dbmanager, name="backupdb"),
 ]
